<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="model.HomeModel" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../css/home.css">
    <script src="../js/jquery.js"></script>
</head>
<body>
<jsp:include page="top.jsp"></jsp:include>
<div class="middle">
    <div class="middle-left">
        <div class="middle-title">较新动态</div>
        <div class="middle-left-content">
            <div class="float-left"><img src="${homeModel.newsImg}" height="190" width="268"/></div>
            <div class="float-left">
                <c:forEach items="${homeModel.newsList}" var="newsList">
                    <div>
                        <h3>${newsList.title}</h3>
                        <p> ${newsList.content}</p>
                    </div>
                </c:forEach>
            </div>
        </div>
    </div>
    <div class="middle-right">
        <div class="middle-title1">产品展示</div>
        <div>
            <c:forEach items="${homeModel.productList}" var="product">
                <div class="float-left">
                    <img src="${product.img}"/>
                    <h4>${product.name}</h4>
                    <p>${product.meterial}</p></div>
            </c:forEach>

        </div>
    </div>
</div>
</div>
<jsp:include page="foot.jsp"></jsp:include>
</body>
</html>